package com.medistat.util;

import com.medistat.model.StandardPersistentObject;

public class ObjectFactory {
	public static <T extends StandardPersistentObject> T create(Class<T> clazz) {
		T result = null;
        try { 
        	if(clazz==null) {
        		return null;
        	}
        	result = (T)clazz.newInstance();
		} catch (InstantiationException e) {
			e.getStackTrace();
		} catch (IllegalAccessException e) {
			e.getStackTrace();
		} 
        return result;
	}
}
